<template>
  <div id="smartTown" class="product-detail">
    <!-- 产品头部 -->
    <div class="product-hero">
      <div class="hero-content">
        <div class="hero-badge">
          <span class="badge-text">创业支持平台</span>
        </div>
        <h1 class="hero-title">创业者之家平台</h1>
        <p class="hero-subtitle">从想法到成功，全程陪伴您的创业之路</p>
        <div class="hero-stats">
          <div class="stat-item">
            <span class="stat-number">10,000+</span>
            <span class="stat-label">服务创业者</span>
          </div>
          <div class="stat-item">
            <span class="stat-number">500+</span>
            <span class="stat-label">成功项目</span>
          </div>
          <div class="stat-item">
            <span class="stat-number">95%</span>
            <span class="stat-label">满意度</span>
          </div>
        </div>
      </div>
      <div class="hero-visual">
        <div class="visual-container">
          <img src="../assets/img/service1.jpg" alt="创业者之家平台" class="hero-image" />
          <div class="visual-overlay">
            <div class="floating-card card-1">
              <i class="glyphicon glyphicon-lightbulb"></i>
              <span>创意孵化</span>
            </div>
            <div class="floating-card card-2">
              <i class="glyphicon glyphicon-stats"></i>
              <span>数据分析</span>
            </div>
            <div class="floating-card card-3">
              <i class="glyphicon glyphicon-user"></i>
              <span>专家指导</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 产品特色 -->
    <div class="product-features">
      <div class="section-header">
        <h2>为什么选择创业者之家</h2>
        <p>集成化的创业支持生态系统，让创业变得更简单</p>
      </div>
      
      <div class="features-grid">
        <div class="feature-card wow fadeInUp" data-wow-delay="0.1s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-flash"></i>
          </div>
          <h3>智能商业计划</h3>
          <p>AI驱动的商业计划书生成器，根据您的行业和需求，智能生成专业的商业计划书模板</p>
          <ul class="feature-details">
            <li>行业模板库</li>
            <li>财务模型自动生成</li>
            <li>风险评估报告</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.2s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-search"></i>
          </div>
          <h3>市场分析工具</h3>
          <p>深度的市场调研和竞争分析工具，帮助您准确定位目标市场和竞争策略</p>
          <ul class="feature-details">
            <li>竞品对比分析</li>
            <li>用户画像构建</li>
            <li>市场趋势预测</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.3s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-cog"></i>
          </div>
          <h3>快速建站系统</h3>
          <p>无需编程知识，通过拖拽即可创建专业的企业网站和产品展示页面</p>
          <ul class="feature-details">
            <li>可视化编辑器</li>
            <li>响应式模板</li>
            <li>SEO优化内置</li>
          </ul>
        </div>
        
        <div class="feature-card wow fadeInUp" data-wow-delay="0.4s">
          <div class="feature-icon">
            <i class="glyphicon glyphicon-usd"></i>
          </div>
          <h3>财务管理助手</h3>
          <p>专业的财务计算和预测工具，帮助您制定合理的财务规划和投资策略</p>
          <ul class="feature-details">
            <li>成本核算</li>
            <li>现金流预测</li>
            <li>融资计划制定</li>
          </ul>
        </div>
      </div>
    </div>

    <!-- 技术架构 -->
    <div class="tech-section">
      <div class="section-header">
        <h2>现代化技术架构</h2>
        <p>采用最新的技术栈，确保平台的稳定性和扩展性</p>
      </div>
      
      <div class="tech-stack">
        <div class="tech-category">
          <h3>前端技术</h3>
          <div class="tech-items">
            <div class="tech-item">
              <div class="tech-logo">Next.js</div>
              <span class="tech-version">14</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">TypeScript</div>
              <span class="tech-version">5+</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">Tailwind CSS</div>
              <span class="tech-version">3+</span>
            </div>
          </div>
        </div>
        
        <div class="tech-category">
          <h3>核心特性</h3>
          <div class="tech-items">
            <div class="tech-item">
              <div class="tech-logo">SSR</div>
              <span class="tech-desc">服务端渲染</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">PWA</div>
              <span class="tech-desc">渐进式应用</span>
            </div>
            <div class="tech-item">
              <div class="tech-logo">AI</div>
              <span class="tech-desc">智能辅助</span>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- 用户反馈 -->
    <div class="testimonials">
      <div class="section-header">
        <h2>用户见证</h2>
        <p>听听那些成功创业者的声音</p>
      </div>
      
      <div class="testimonials-grid">
        <div class="testimonial-card">
          <div class="testimonial-content">
            <p>"创业者之家平台帮助我从零开始构建了完整的商业计划，现在我的项目已经获得了天使投资。"</p>
          </div>
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="../assets/img/logo_hp.png" alt="用户头像" />
            </div>
            <div class="author-info">
              <h4>张创业</h4>
              <p>科技公司CEO</p>
            </div>
          </div>
        </div>
        
        <div class="testimonial-card">
          <div class="testimonial-content">
            <p>"市场分析工具特别实用，让我清楚地了解了竞争对手的情况，制定了更好的产品策略。"</p>
          </div>
          <div class="testimonial-author">
            <div class="author-avatar">
              <img src="../assets/img/logo_kk.png" alt="用户头像" />
            </div>
            <div class="author-info">
              <h4>李企业</h4>
              <p>电商平台创始人</p>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- CTA区域 -->
    <div class="product-cta">
      <div class="cta-content">
        <h2>准备开始您的创业之旅？</h2>
        <p>立即体验创业者之家平台，让我们陪伴您走向成功</p>
        <div class="cta-buttons">
          <a href="#" class="btn-primary">免费试用</a>
          <a href="#" class="btn-secondary">了解更多</a>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup name="smartTown">
import { onMounted } from 'vue'
import WOW from 'wow.js'

onMounted(() => {
  const wow = new WOW({
    boxClass: 'wow',
    animateClass: 'animated',
    offset: 0,
    mobile: true,
    live: true
  })
  wow.init()
})
</script>

<style scoped>
/* 苹果风格产品详情页 */
.product-detail {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #1d1d1f;
}

/* 产品头部 */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-content {
  max-width: 500px;
}

.hero-badge {
  margin-bottom: 24px;
}

.badge-text {
  display: inline-block;
  background: rgba(0, 113, 227, 0.08);
  color: #0071e3;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero-subtitle {
  font-size: 21px;
  font-weight: 400;
  color: #86868b;
  margin: 0 0 40px 0;
  letter-spacing: -0.01em;
  line-height: 1.38;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.hero-stats .stat-item {
  text-align: left;
}

.hero-stats .stat-number {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.hero-stats .stat-label {
  font-size: 13px;
  font-weight: 400;
  color: #86868b;
  letter-spacing: -0.01em;
}

/* 视觉元素 */
.hero-visual {
  position: relative;
}

.visual-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.hero-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
}

.floating-card {
  position: absolute;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1d1d1f;
  animation: float 3s ease-in-out infinite;
}

.floating-card i {
  font-size: 18px;
  color: #0071e3;
}

.card-1 {
  top: 20px;
  right: 20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 60px;
  left: 20px;
  animation-delay: 1s;
}

.card-3 {
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 区块头部 */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-header p {
  font-size: 19px;
  font-weight: 400;
  color: #86868b;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.42;
}

/* 产品特色 */
.product-features {
  padding: 120px 0;
  background: #f5f5f7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 113, 227, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #0071e3, #005bb5);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon i {
  font-size: 24px;
  color: #ffffff;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.feature-card p {
  font-size: 16px;
  font-weight: 400;
  color: #515154;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.feature-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-details li {
  font-size: 14px;
  color: #86868b;
  margin-bottom: 8px;
  padding-left: 16px;
  position: relative;
}

.feature-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #30d158;
  font-weight: 600;
}

/* 技术架构 */
.tech-section {
  padding: 120px 0;
  background: #ffffff;
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
}

.tech-category h3 {
  font-size: 24px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 32px 0;
  letter-spacing: -0.01em;
}

.tech-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f5f5f7;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tech-item:hover {
  background: #e8e8ed;
  transform: translateX(4px);
}

.tech-logo {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
}

.tech-version,
.tech-desc {
  font-size: 13px;
  font-weight: 500;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  padding: 4px 8px;
  border-radius: 8px;
}

/* 用户反馈 */
.testimonials {
  padding: 120px 0;
  background: #f5f5f7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-content {
  margin-bottom: 24px;
}

.testimonial-content p {
  font-size: 17px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.47;
  letter-spacing: -0.01em;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0 0 4px 0;
}

.author-info p {
  font-size: 14px;
  font-weight: 400;
  color: #86868b;
  margin: 0;
}

/* CTA区域 */
.product-cta {
  padding: 120px 0;
  background: #1d1d1f;
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: #f5f5f7;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.cta-content p {
  font-size: 19px;
  font-weight: 400;
  color: #a1a1a6;
  margin: 0 0 40px 0;
  letter-spacing: -0.01em;
  line-height: 1.42;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 16px 32px;
  font-size: 17px;
  font-weight: 400;
  border-radius: 980px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: -0.01em;
  min-width: 160px;
  text-align: center;
}

.btn-primary {
  background: #0071e3;
  color: #ffffff;
  border: 2px solid #0071e3;
}

.btn-primary:hover {
  background: #0077ed;
  border-color: #0077ed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4);
  text-decoration: none;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #0071e3;
  border: 2px solid rgba(0, 113, 227, 0.8);
}

.btn-secondary:hover {
  background: rgba(0, 113, 227, 0.1);
  color: #0077ed;
  border-color: #0071e3;
  transform: translateY(-2px);
  text-decoration: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
  }

  .hero-stats {
    justify-content: center;
    gap: 24px;
    text-align: center;
  }

  .hero-stats .stat-item {
    text-align: center;
  }

  .product-features,
  .tech-section,
  .testimonials,
  .product-cta {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 32px 24px;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 280px;
  }
}
</style>